package com.controller.admin;

import com.service.ISettleService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Author ri.yang
 * @Since 2016/1/6.
 */
@RequestMapping("/settlement")
@Controller
public class SettlementController {
    @Resource
    private ISettleService settleService;

    @RequestMapping(value = "/list", method = RequestMethod.GET)
    public String list(ModelMap modelMap) {
        List<Map<String, Object>> settles = settleService.getGraduationInfo();
        modelMap.addAttribute("settles", settles);
        return "/settlement/list";
    }

    @RequestMapping("/settle")
    public String settle() {
        return "";
    }
}
